var $appTable = {
	description : 'bootstrapTable 封装函数',
	version : '0.0.1'
};


$appTable = {
	click : function($table,callback){
		$table.on('check.bs.table uncheck.bs.table check-all.bs.table uncheck-all.bs.table', function () {
			callback();
	    });
	},
	getSelections :function($table,callback){
		return $table.bootstrapTable('getSelections');
	},
	dateFormatter : function(value,row,index){
		if(value != null && value != ""){
			return app.inputDate.myformatter(new Date(parseInt(value)))
		} else {
			return "-";
		}
	},
	showBut : function(value,row,index){
		if(value == null || value == ""){
			return "-";
		}
		var html = "<button type=\"button\" data-target=\"#myModal\" data-toggle=\"modal\" onclick=\"showMassage('" + value + "')\" class=\"btn btn-xs btn-default\">显示</button>";
		return html;
	}
}


function showMassage(value){
	app.dialog.modal("详情信息",value,null);
}


